Optimal. Leaf size=14 \[ a \log (x)-b \text {Li}_2(-e x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2439, 2438}
\begin {gather*} a \log (x)-b \text {PolyLog}(2,-e x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2438
Rule 2439
Rubi steps
\begin {align*} \int \frac {a+b \log (1+e x)}{x} \, dx &=a \log (x)+b \int \frac {\log (1+e x)}{x} \, dx\\ &=a \log (x)-b \text {Li}_2(-e x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 14, normalized size = 1.00 \begin {gather*} a \log (x)-b \text {Li}_2(-e x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.18, size = 17, normalized size = 1.21
method | result | size |
risch | \(\ln \left (x \right ) a -b \dilog \left (e x +1\right )\) | \(15\) |
derivativedivides | \(a \ln \left (e x \right )-b \dilog \left (e x +1\right )\) | \(17\) |
default | \(a \ln \left (e x \right )-b \dilog \left (e x +1\right )\) | \(17\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 29 vs.
\(2 (14) = 28\).
time = 0.30, size = 29, normalized size = 2.07 \begin {gather*} {\left (\log \left (x e + 1\right ) \log \left (-x e\right ) + {\rm Li}_2\left (x e + 1\right )\right )} b + a \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 14, normalized size = 1.00 \begin {gather*} -b {\rm Li}_2\left (-x e\right ) + a \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 1.95, size = 15, normalized size = 1.07 \begin {gather*} a \log {\left (x \right )} - b \operatorname {Li}_{2}\left (e x e^{i \pi }\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 14, normalized size = 1.00 \begin {gather*} a\,\ln \left (x\right )-b\,\mathrm {polylog}\left (2,-e\,x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________